<template>
  <el-form ref="form" :model="form" :rules="rules" label-width="150px">

    <el-form-item label="机构名称" prop="name">
      <el-input :disabled="openType != 'edit'" v-model="form.name" placeholder="请输入企业名称" />
    </el-form-item>
    <el-form-item label="统一社会信用代码" prop="code">
      <el-input :disabled="openType != 'edit'" v-model="form.code" placeholder="请输入统一社会信用代码" />
    </el-form-item>
    <el-form-item label="机构地址" prop="address">
      <el-input :disabled="openType != 'edit'" v-model="form.address" placeholder="请输入公司地址" />
    </el-form-item>
    <el-form-item label="机构网站" prop="site">
      <el-input :disabled="openType != 'edit'" v-model="form.site" placeholder="请输入公司网站" />
    </el-form-item>
    <el-form-item label="联系人" prop="linkMan">
      <el-input :disabled="openType != 'edit'" v-model="form.linkMan" placeholder="请输入联系人" />
    </el-form-item>
    <el-form-item label="联系方式" prop="linkTel">
      <el-input :disabled="openType != 'edit'" v-model="form.linkTel" placeholder="请输入联系方式" />
    </el-form-item>
    <el-form-item label="机构简介" prop="companyProfile">
      <el-input :disabled="openType != 'edit'" type="textarea" :rows="4" placeholder="请输入内容"
        v-model="form.companyProfile">
      </el-input>
    </el-form-item>
    <el-form-item label="上传营业执照" prop="logo">
      <ImageUpload v-if="openType === 'edit'" v-model:value="form.logo" :limit="1" />
      <div v-else class="img-box mr-20 f-left">
        <img v-if="form.logo" :src="form.logo" alt="">
      </div>
    </el-form-item>

    <div v-if="openType != 'edit' && form.approvalSt != 0">
      <el-divider content-position="center">审核</el-divider>
      <el-form-item label="审核状态" prop="approvalSt">
        <el-select disabled v-model="form.approvalSt" placeholder="请选择审核状态">
          <el-option label="请选择" :value="0"></el-option>
          <el-option label="通过" :value="1"></el-option>
          <el-option label="驳回" :value="2"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item v-if="form.approvalSt === 2" label="驳回理由" prop="approvalRejection">
        <el-input disabled v-model="form.approvalRejection" :maxLength="200" type="textarea" placeholder="请输入驳回理由" />
      </el-form-item>
    </div>

  </el-form>
</template>